var welcomePageLayout;
var menuLayout;

var screenwidth = screen.width;
var screenheight = screen.height;

function getContainerWidth (percentage)

{
	return screenwidth*(percentage/100);
	
}
function getContainerHeight (percentage)

{
	return screenheight*(percentage/100);
	
}

/*function createLayoutForWelcome(){
	
	
	
	welcomePageLayout = $("body").layout({
		//north__paneSelector:	"#welcomeHeader,"
		 center_paneSelector:  	"#outerContentDiv"
		,north__spacing_open:	0
		,north__spacing_closed:	0
		,north__resizable:		false
		,north__size:			getContainerHeight(7)
		,west__size:			getContainerWidth(20)
	});
	

}*/
/*function loadContentForUpload()
{
	$("#contentDiv").loading({
		onAjax:true, 
		delay: 50,
		text: "Loading Details . . .",
		align:'center',
		pulse: "type"
		});
	$.post('showMetaData.htm',{data:'data'},function(data){
		$("#contentDiv").empty().html(data);
	},"html");
}
function loadContentForBrowse()
{
	

	$("#contentDiv").loading({
		onAjax:true, 
		delay: 50,
		text: "Loading Search page . . .",
		align:'center',
		pulse: "type"
		});
	$.post('showBrowseOptions.htm',{data:'data'},function(data){
		$("#contentDiv").empty().html(data);
	},"html");
	
}

function loadContentForSearch(ops)
{
	
	$("#contentDiv").loading({
		onAjax:true, 
		delay: 100,
		text: "Loading Search page . . .",
		align:'center',
		pulse: "type"
		});
	$.post('showSearchCriteria/'+ops+'.htm',{data:'data'},function(data){
		$("#contentDiv").empty().html(data);
	},"html");
}
function loadContentForReports(reportType)
{
	$('#contentDiv').loading({
		onAjax:true, 
		delay: 50,
		text: "Loading Report page . . .",
		align:'center',
		pulse: "type"
	});
	$.post('getReportsPage.htm',{reportType:reportType},function(data){
		$("#contentDiv").empty().html(data);
	},"html");
}*/



/*stuHover = function() {
	var cssRule;
	var newSelector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
			{
			cssRule = document.styleSheets[i].rules[x];
			if (cssRule.selectorText.indexOf("LI:hover") != -1)
			{
				 newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
			}
		}
	$("#menuDiv LI").each(function(index,element){
		element.onmouseover=function() {
			this.className+=" iehover";
		};
		element.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		};
	});
};
if (window.attachEvent) window.attachEvent("onload", stuHover);*/